import { createRouter, createWebHistory } from 'vue-router'
import DKVui from 'dk-vui'

const routerFiles = import.meta.globEager(['../views/**/index.vue', '!**/components/**'])
export const routes = DKVui.getRoutes(routerFiles, 'Pmc')
console.log('Pmc routes', routes)
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})
export default router